<template>
    <div class="todo-wrap">
        <ul>
            <MyItem v-for="todo in todos" :key="todo.id" :todoItem="todo"/>
        </ul>
    </div>
</template>

<script>

import MyItem from './MyItem.vue';

export default {
    name: "MyList",
    components: {
        MyItem
    },
    props: ['todos']
}
</script>

<style scoped>
.todo-wrap {
    width: 800px;
    text-align: center;
}

ul {
    width: 400px;
    display: block;
    list-style: none;
}
</style>